#include <iostream>
#include <string.h>
using namespace std;
void deal(string str)
{
    if(str.find("ong,")==-1 || str.find("ong.") == -1)
    {
            cout<<"Skipped"<<endl;   
    }
    else
    {
            int pos = str.rfind(" ");
            pos = str.rfind(" ",pos-1);
            pos =str.rfind(" ",pos-1);
            string sstr = str.substr(0,pos+1)+"qiao ben zhong.";
            cout<<sstr<<endl;
    }
}
int main()
{
    int N;
    cin >> N;
    
    string s;
    getline(cin, s);
   
    for(int i = 0; i<N; i++)
    {
        getline(cin,s);
        deal(s);
        
    }
}